#include <string.h>
#include <jni.h>
#include <stdio.h>
#include <stdlib.h>
#include "ParseCommand.h"
#include "ContentSearch.h"
#include "DisplayResult.h"
#include "SearchServer.h"

/* This is a trivial JNI example where we use a native method
 * to return a new VM String. See the corresponding Java source
 * file located at:
 *
 *   apps/samples/hello-jni/project/src/com/example/hellojni/HelloJni.java
 */
CParseCommand*	parse;
CContentSearch*	content;
CDisplayResult* display;
CSearchServer*	searchserver;

extern "C" {
JNIEXPORT jstring JNICALL Java_com_example_anything_MainActivity_stringFromJNI(
		JNIEnv* env, jobject thiz );
};

JNIEXPORT jstring JNICALL
Java_com_example_anything_MainActivity_stringFromJNI(JNIEnv* env, jobject thiz )
{
	parse	= new CParseCommand;
	content	= new CContentSearch;
	display = new CDisplayResult;
//	searchserver = new CSearchServer;
    return env->NewStringUTF("String JNI zhaorenming");
}
